package cn.sad.bjsx.starter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@ComponentScan(basePackages = { "cn.sad" })
@SpringBootApplication
@EnableAsync // 开启异步调用
@EnableScheduling // 开启定时任务
public class BjsxStartApplication {

	public static void main(String[] args) {
		// 日志输出使用异步处理，减小输出日志对性能的影响（异步后将不会显示类方法和行数信息）
		// System.setProperty("Log4jContextSelector", "org.apache.logging.log4j.core.async.AsyncLoggerContextSelector");

		SpringApplication.run(BjsxStartApplication.class, args);
	}
}
